package com.wsoft.portal.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * <p>
 * 空间类型
 * </p>
 *
 * @author Z001
 * @since 2024年12月27日 10:02:24
 */
@Getter
@Setter
@TableName("portal_module")
@Schema(name = "PortalModuleEntity", description = "空间类型")
public class PortalModuleEntity extends BaseEntity {

    @Schema(description = "所属空间")
    @TableField("portal_id")
    private Long portalId;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;

    @Schema(description = "标题是否显示")
    @TableField("title_hidden")
    private Integer titleHidden;

    @Schema(description = "标题背景透明度")
    @TableField("title_bg_opacity")
    private BigDecimal titleBgOpacity;

    @Schema(description = "表体高度")
    @TableField("body_height")
    private Integer bodyHeight;

    @Schema(description = "表体背景色")
    @TableField("body_bg")
    private String bodyBg;

    @Schema(description = "表体背景透明度")
    @TableField("body_bg_opacity")
    private BigDecimal bodyBgOpacity;

    @Schema(description = "宽度")
    @TableField("width")
    private Integer width;

    @Schema(description = "高度")
    @TableField("height")
    private Integer height;

    @Schema(description = "x轴")
    @TableField("axis_x")
    private BigDecimal axisX;

    @Schema(description = "y轴")
    @TableField("axis_y")
    private BigDecimal axisY;

    @Schema(description = "列数")
    @TableField("width_count")
    private Integer widthCount;
}
